<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.5.4/css/layui.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">

        <div class="layui-btn-group">
            <button class="layui-btn layui-btn-radius layui-btn-warm data-product">产品管理</button>
            <button class="layui-btn layui-btn-radius layui-btn-normal data-uppxia-product  ">下架商品</button>
            <button class="layui-btn data-add-btn " id="addProduct" lay-filter="add">添加商品</button>
        </div>
        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>
        <script type="text/html" id="currentTableEdit">
            <a class="layui-btn layui-btn-xs  layui-btn-normal " lay-event="edit">修改信息</a>
        </script>

        <script type="text/html" id="currentTableEditPrice">
            <a class="layui-btn layui-btn-xs layui-btn-warm  " lay-event="edit">更新价格</a>
        </script>

        <script type="text/html" id="currentTableBar">
            <a class="layui-btn layui-btn-xs layui-btn-danger  " lay-event="delete">下架</a>
        </script>

    </div>
</div>



<script src="../lib/layui-v2.5.4/layui.js" charset="utf-8"></script>
<script src="https://cdn.bootcss.com/axios/0.19.0/axios.min.js"></script>
<script src="../js/product-manage.js" charset="utf-8"></script>


<div class="site-text" style="margin: 5%; display: none" id="window" target="test123">
    <form class="layui-form" id="product" method="post" lay-filter="example">
        <div class="layui-form-item" >
            <div class="layui-inline" style="padding-top: 20px">
                <label class="layui-form-label">产品名称</label>
                <div class="layui-input-block" style="width:200px">
                    <input type="text" id="pName" name="pName"   autocomplete="off" placeholder="" class="layui-input">
                </div>
            </div>
            <div class="layui-inline" style="padding-top: 20px">
                <label class="layui-form-label">产品产地</label>
                <div class="layui-input-inline" style="width:200px">
                    <input type="text" id="pArea" name="pArea" lay-verify="title" autocomplete="off" placeholder=" " class="layui-input">
                </div>
            </div>

            <div class="layui-form" style="padding-top: 20px">
                <label class="layui-form-label">产品规格</label>
                <div class="layui-input-block" style="width:200px">
               <!--    <select name="pMl" id="pMl"  >
                        <option value="">&#45;&#45;请选择&#45;&#45;</option>
                    </select>-->
                    <input type="text" id="pMl" name="pMl" lay-verify="title" autocomplete="off" placeholder=" " class="layui-input">
                </div>
            </div>

            <div class="layui-form" style="padding-top: 20px">
                <label class="layui-form-label">产品类别</label>
                <div class="layui-input-block"style="width:200px;padding-top: 20px" >
                    <select name="sName" id="sName" >
                        <option value="" >--请选择--</option>
                    </select>
                </div>
            </div>

        </div>

        <div class="layui-form-item" style="padding-top: 25px">                       
            <div class="layui-input-block">
                <button lay-submit="" lay-filter="productAdd" class="layui-btn layui-btn-normal tijiao">新增商品</button>
                     
            </div>
        </div>

    </form>
</div>

<script>

    //   getValue属于window对象
/*    function getValue() {
        var pname = document.getElementById("pName").value;
        var parea = document.getElementById("pArea").value;
        let pml = $('#pMl option:selected').val();
        let sid = $('#sName option:selected').val();

        var data = {"pName": pname, "pArea":parea,"pMl":pml,"sName":sid}
        return data;
    }*/







</script>

</body>
</html>